# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=oksh
pkgver=6.7
pkgrel=0
pkgdesc="Portable OpenBSD ksh, based on the Public Domain KornShell (pdksh)"
url="https://github.com/ibara/oksh"
arch="all"
license="BSD-3-Clause"
options="!check" # no checks
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="https://github.com/ibara/oksh/archive/oksh-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

build() {
	./configure \
		--bindir=/bin \
		--mandir=/usr/share/man
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="94bdf846dbce68a2c72bf83b867fd1beeaa0f36f8fdb3dd95cee801f75abd6acd8433cc7e534e79cc053274defeec55ba71714e178cc9b53291c7907edb01b37  oksh-6.7.tar.gz"
